package cn.lingyangwl.agile.infra.job;

import cn.lingyangwl.agile.infra.job.service.IJobInfoService;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 项目启动执行
 * @author shenguangyang
 */
@Component
public class JobCommandLineRunner implements ApplicationRunner {
    @Resource
    IJobInfoService jobService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        jobService.init();
    }
}